package rapier.sso.server.handler;

import rapier.sso.server.model.Credential;

/**
 * 权限验证
 * 
 * @author chenkw
 *
 */
public interface IAuthHandler {
	
	/**
	 * 是否支持
	 * @param credential
	 * @return
	 */
	public boolean support(Credential credential);
	
	/**
	 * 验证
	 * @param credential
	 * @return
	 */
	public boolean auth(Credential credential);

	/**释放
	 * @param credential
	 */
	public void release(Credential credential);
}
